/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Ventana.java
 *
 * Created on 02-sep-2011, 12:01:52
 */
package vista;

import modelo.OperacionesBasicas;

/**
 *
 * @author Víctor RM
 */
public class Ventana extends javax.swing.JFrame {
    
    
    private double a;
    private double b;
    private int count;
    
    
    /** Creates new form Ventana */
    public Ventana() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pantalla = new javax.swing.JTextField();
        tecla7 = new javax.swing.JButton();
        tecla8 = new javax.swing.JButton();
        tecla9 = new javax.swing.JButton();
        tecla5 = new javax.swing.JButton();
        tecla2 = new javax.swing.JButton();
        tecla6 = new javax.swing.JButton();
        tecla3 = new javax.swing.JButton();
        tecla4 = new javax.swing.JButton();
        tecla1 = new javax.swing.JButton();
        teclaIgual = new javax.swing.JButton();
        teclaSuma = new javax.swing.JButton();
        teclaResta = new javax.swing.JButton();
        tecla0 = new javax.swing.JButton();
        teclaDivision = new javax.swing.JButton();
        teclaMultiplicacion = new javax.swing.JButton();
        teclaPorCien = new javax.swing.JButton();
        teclaLimpiar = new javax.swing.JButton();
        teclaMiles = new javax.swing.JButton();
        teclaSen = new javax.swing.JButton();
        teclaCos = new javax.swing.JButton();
        teclaTan = new javax.swing.JButton();
        teclaCtan = new javax.swing.JButton();
        teclaSec = new javax.swing.JButton();
        teclaCsec = new javax.swing.JButton();
        teclaElevar2 = new javax.swing.JButton();
        teclaElevar3 = new javax.swing.JButton();
        teclaElevarY = new javax.swing.JButton();
        teclaRetroceso = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        pantalla.setFont(new java.awt.Font("Baskerville Old Face", 1, 24)); // NOI18N
        pantalla.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        pantalla.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pantallaActionPerformed(evt);
            }
        });

        tecla7.setText("7");
        tecla7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla7ActionPerformed(evt);
            }
        });

        tecla8.setText("8");
        tecla8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla8ActionPerformed(evt);
            }
        });

        tecla9.setText("9");
        tecla9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla9ActionPerformed(evt);
            }
        });

        tecla5.setText("5");
        tecla5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla5ActionPerformed(evt);
            }
        });

        tecla2.setText("2");
        tecla2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla2ActionPerformed(evt);
            }
        });

        tecla6.setText("6");
        tecla6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla6ActionPerformed(evt);
            }
        });

        tecla3.setText("3");
        tecla3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla3ActionPerformed(evt);
            }
        });

        tecla4.setText("4");
        tecla4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla4ActionPerformed(evt);
            }
        });

        tecla1.setText("1");
        tecla1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla1ActionPerformed(evt);
            }
        });

        teclaIgual.setFont(new java.awt.Font("Tahoma", 0, 48)); // NOI18N
        teclaIgual.setText("=");
        teclaIgual.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                teclaIgualActionPerformed(evt);
            }
        });

        teclaSuma.setText("+");
        teclaSuma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                teclaSumaActionPerformed(evt);
            }
        });

        teclaResta.setText("--");
        teclaResta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                teclaRestaActionPerformed(evt);
            }
        });

        tecla0.setFont(new java.awt.Font("Tahoma", 0, 48)); // NOI18N
        tecla0.setText("0");
        tecla0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tecla0ActionPerformed(evt);
            }
        });

        teclaDivision.setText("/");
        teclaDivision.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                teclaDivisionActionPerformed(evt);
            }
        });

        teclaMultiplicacion.setText("X");
        teclaMultiplicacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                teclaMultiplicacionActionPerformed(evt);
            }
        });

        teclaPorCien.setText("%");
        teclaPorCien.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                teclaPorCienActionPerformed(evt);
            }
        });

        teclaLimpiar.setFont(new java.awt.Font("Tahoma", 0, 24));
        teclaLimpiar.setText("Sorry!");

        teclaMiles.setFont(new java.awt.Font("Tahoma", 0, 48));
        teclaMiles.setText("000");

        teclaSen.setText("Sen");

        teclaCos.setText("Cos");

        teclaTan.setText("Tan");

        teclaCtan.setText("Ctan");

        teclaSec.setText("Sec");

        teclaCsec.setText("Csec");

        teclaElevar2.setText("X^2");

        teclaElevar3.setText("X^3");

        teclaElevarY.setText("X^Y");

        teclaRetroceso.setFont(new java.awt.Font("Tahoma", 1, 36));
        teclaRetroceso.setText("<--");
        teclaRetroceso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                teclaRetrocesoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(pantalla))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(teclaLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(teclaMiles, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(tecla0)
                                .addGap(6, 6, 6)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(tecla7)
                                    .addComponent(tecla4)
                                    .addComponent(tecla1))
                                .addGap(6, 6, 6)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(tecla8)
                                    .addComponent(tecla5)
                                    .addComponent(tecla2))
                                .addGap(6, 6, 6)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(tecla9)
                                    .addComponent(tecla6)
                                    .addComponent(tecla3))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(teclaIgual)))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(teclaSuma, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(teclaMultiplicacion, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(2, 2, 2))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(teclaPorCien, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(1, 1, 1)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(teclaDivision, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(teclaResta))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(teclaRetroceso, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(teclaElevar2)
                                    .addComponent(teclaElevar3)
                                    .addComponent(teclaElevarY))
                                .addGap(22, 22, 22)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(teclaTan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(teclaCos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(teclaSen))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(teclaSec, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(teclaCtan))
                                    .addComponent(teclaCsec))))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pantalla, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tecla0, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(tecla7)
                                .addGap(6, 6, 6)
                                .addComponent(tecla4)
                                .addGap(6, 6, 6)
                                .addComponent(tecla1))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(tecla8)
                                .addGap(6, 6, 6)
                                .addComponent(tecla5)
                                .addGap(6, 6, 6)
                                .addComponent(tecla2))
                            .addComponent(teclaIgual, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(tecla9)
                                .addGap(6, 6, 6)
                                .addComponent(tecla6)
                                .addGap(6, 6, 6)
                                .addComponent(tecla3))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(teclaSuma)
                                    .addComponent(teclaResta))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(teclaMultiplicacion)
                                    .addComponent(teclaDivision))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(teclaPorCien))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(36, 36, 36)
                        .addComponent(teclaRetroceso, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(teclaMiles, javax.swing.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE)
                    .addComponent(teclaLimpiar, javax.swing.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(teclaElevar2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(teclaElevar3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(teclaElevarY))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(teclaCtan)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(teclaSec)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(teclaCsec))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(teclaSen)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(teclaCos)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(teclaTan))))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void pantallaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pantallaActionPerformed
// TODO add your handling code here:
    
}//GEN-LAST:event_pantallaActionPerformed

private void teclaIgualActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_teclaIgualActionPerformed
// TODO add your handling code here:
    
}//GEN-LAST:event_teclaIgualActionPerformed

private void tecla5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla5ActionPerformed
// TODO add your handling code here:
    pantalla.setText(pantalla.getText() + "5");
}//GEN-LAST:event_tecla5ActionPerformed

private void tecla2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla2ActionPerformed
// TODO add your handling code here:
    pantalla.setText(pantalla.getText() + "2");
}//GEN-LAST:event_tecla2ActionPerformed

private void tecla7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla7ActionPerformed
// TODO add your handling code here:
    pantalla.setText(pantalla.getText() + "7");
}//GEN-LAST:event_tecla7ActionPerformed

private void teclaSumaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_teclaSumaActionPerformed
// TODO add your handling code here:
    
    a = Double.parseDouble(pantalla.getText());
    b = OperacionesBasicas.suma(a, b);
    pantalla.setText("" + b);
    /*
    if(count == 0){
        a = Double.parseDouble(pantalla.getText());
        pantalla.setText("");
        count ++;
    }
    else{
        b = Double.parseDouble(pantalla.getText());
        pantalla.setText("" + OperacionesBasicas.suma(a, b));
        count = 0;        
    } */   
        
}//GEN-LAST:event_teclaSumaActionPerformed

private void teclaRestaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_teclaRestaActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_teclaRestaActionPerformed

private void tecla0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla0ActionPerformed
// TODO add your handling code here:
    pantalla.setText(pantalla.getText() + "0");
}//GEN-LAST:event_tecla0ActionPerformed

private void teclaDivisionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_teclaDivisionActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_teclaDivisionActionPerformed

private void teclaMultiplicacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_teclaMultiplicacionActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_teclaMultiplicacionActionPerformed

private void teclaPorCienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_teclaPorCienActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_teclaPorCienActionPerformed

private void teclaRetrocesoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_teclaRetrocesoActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_teclaRetrocesoActionPerformed

private void tecla1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla1ActionPerformed
// TODO add your handling code here:
    pantalla.setText(pantalla.getText() + "1");
}//GEN-LAST:event_tecla1ActionPerformed

private void tecla6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla6ActionPerformed
// TODO add your handling code here:
    pantalla.setText(pantalla.getText() + "6");
}//GEN-LAST:event_tecla6ActionPerformed

private void tecla3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla3ActionPerformed
// TODO add your handling code here:
    pantalla.setText(pantalla.getText() + "3");
}//GEN-LAST:event_tecla3ActionPerformed

private void tecla4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla4ActionPerformed
// TODO add your handling code here:
    pantalla.setText(pantalla.getText() + "4");
}//GEN-LAST:event_tecla4ActionPerformed

private void tecla8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla8ActionPerformed
// TODO add your handling code here:
    pantalla.setText(pantalla.getText() + "8");
}//GEN-LAST:event_tecla8ActionPerformed

private void tecla9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tecla9ActionPerformed
// TODO add your handling code here
    pantalla.setText(pantalla.getText() + "9");
}//GEN-LAST:event_tecla9ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Ventana().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField pantalla;
    private javax.swing.JButton tecla0;
    private javax.swing.JButton tecla1;
    private javax.swing.JButton tecla2;
    private javax.swing.JButton tecla3;
    private javax.swing.JButton tecla4;
    private javax.swing.JButton tecla5;
    private javax.swing.JButton tecla6;
    private javax.swing.JButton tecla7;
    private javax.swing.JButton tecla8;
    private javax.swing.JButton tecla9;
    private javax.swing.JButton teclaCos;
    private javax.swing.JButton teclaCsec;
    private javax.swing.JButton teclaCtan;
    private javax.swing.JButton teclaDivision;
    private javax.swing.JButton teclaElevar2;
    private javax.swing.JButton teclaElevar3;
    private javax.swing.JButton teclaElevarY;
    private javax.swing.JButton teclaIgual;
    private javax.swing.JButton teclaLimpiar;
    private javax.swing.JButton teclaMiles;
    private javax.swing.JButton teclaMultiplicacion;
    private javax.swing.JButton teclaPorCien;
    private javax.swing.JButton teclaResta;
    private javax.swing.JButton teclaRetroceso;
    private javax.swing.JButton teclaSec;
    private javax.swing.JButton teclaSen;
    private javax.swing.JButton teclaSuma;
    private javax.swing.JButton teclaTan;
    // End of variables declaration//GEN-END:variables
}
